<style type="text/css">
.wrapper { padding-left: 30px; }
</style>

<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
        'action'=>url('/Core/service/index',array('SID' => 'User.User.login','FORMAT' => 'xml')),
        'id'=>'user-form',
        'enableAjaxValidation'=>false,
        'enableClientValidation'=>false,
        'clientOptions' => array(
            'validateOnSubmit'=>true,
        ),
    )); ?>

        <h2>Login to access your account:</h2>

        <?php $this->widget('MessageBox'); ?>

        <div class="row">
            <?php echo $form->labelEx($model,'email'); ?>
            <?php echo $form->textField($model,'email'); ?>
            <?php echo $form->error($model,'email'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model,'password'); ?>
            <?php echo $form->passwordField($model,'password'); ?>
            <?php echo $form->error($model,'password'); ?>
        </div>

        <div class="row buttons">
            <?php echo CHtml::submitButton('Log in'); ?>
        </div>

    <?php $this->endWidget(); ?>
</div>